﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterView.Master" Inherits="System.Web.Mvc.ViewPage<WebSearch.Models.SearchModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Results
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class="search-top">
    <img src="/Content/logo-small.png" alt="" />
    <% Html.RenderPartial("SearchForm", Model); %>

    Q: <%= ViewData["query"] %>
</div>

<div class="results">
<%
    if (Model != null && Model.Results != null)
    {
        Html.RenderPartial(Model.ResultView, Model.Results);
    }
%>
</div>

</asp:Content>
